{% assign projects = data.projects %}
{% if projects and projects.display %}
<section class="projects">
    <div class="section-title">
        {{ projects.title }}
    </div>

    <div class="section-content">
        {% if projects.intro %}
        <div class="intro">
            <div class="markdown">
                <p>{{ projects.intro | markdownify }}</p>
            </div>
        </div>
        {% endif %}
        <div class="row">
            {% for project in projects.items %}
            <div class="col-xl-6 col-lg-6 col-md-6 col-sm-6">
                <div class="item">
                    {% if project.name %}
                    <p class="project">
                        {% if project.link %}
                        <a href="{{ project.link }}" target="_blank">{{ project.name }}</a>
                        {% else %}
                        {{ project.name }}
                        {% endif %}
                    </p>

                    {% if project.details %}
                    <div class="details">
                        <div class="markdown">
                            {{ project.details | markdownify }}
                        </div>
                    </div>
                    {% endif %}
                    {% endif %}
                </div>
            </div>
            {% endfor %}
        </div>
    </div>
</section>
{% endif %}